﻿/****************************** Module Header ******************************\
 * Module Name:  MenuItemRender.cs
 * Module Version:  1.0.0 (2012-8-8)
 * Copyright (c) AnyEB.Com (14507247@qq.com)
 * 
 * This class is used for MenuItemRender. 
 * 
 * This source is subject to the GPL License.
 * See http://www.gnu.org/licenses/gpl.html.
 * All other rights reserved.
 * 
 * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, 
 * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED 
 * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
\***************************************************************************/

using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Windows.Forms;

namespace UCF.Core.Forms
{
    /// <summary>
    /// 重绘菜单栏样式，去掉鼠标移动的边框
    /// </summary>
    public class MenuItemNoBorderRender : ToolStripRenderer
    {
        /// <summary>
        /// 重绘菜单栏样式，去掉鼠标移动的边框
        /// </summary>
        public MenuItemNoBorderRender() : base() { }

        /// <summary>
        /// 渲染边框 不绘制边框
        /// </summary>
        /// <param name="e"></param>
        protected override void OnRenderToolStripBorder(ToolStripRenderEventArgs e)
        {
            //不调用基类的方法 屏蔽掉该方法 去掉边框
        }

    }
}
